import logUtil from './log-level-util'

const plugin = {
  install (Vue, options) {
    logUtil(log, {
      url: options.server,
      callOriginal: options.local
    })
    log.setLevel(options.level || 'info');
    Vue.prototype.$log = log
    Vue.log = log
  },
  $log: log
}

export default plugin
export const install = plugin.install
